Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make comma-list parsing really robust #403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mcy
Copy link
Member

@mcy mcy commented Dec 19, 2024

This PR adds more diagnostics for comma-delimited list of types and expressions, and ensures that commas are optional pretty much everywhere for generating a valid AST, while at the same time diagnosing all missing and extraneous commas. This ensures a match with the behavior advertised in #393.

Includes a test that exercises various corner cases.

This PR also adds Span.RuneRange and Span.Rune, to aid in constructing suggestion spans.

@mcy mcy requested a review from jhump December 19, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant